package com.wangzhixuan.db.bean;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by Dell on 2017/2/17.
 */
public class Payment {
    private long id;
    private long orderId;
    private Double payAmmount;
    private String transaction;
    private Date updated;
    private String date;

    public Payment() {
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getOrderId() {
        return orderId;
    }

    public void setOrderId(long orderId) {
        this.orderId = orderId;
    }

    public Double getPayAmmount() {
        return payAmmount;
    }

    public void setPayAmmount(Double payAmmount) {
        this.payAmmount = payAmmount;
    }

    public String getTransaction() {
        return transaction;
    }

    public void setTransaction(String transaction) {
        this.transaction = transaction;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    public String getDate() {
        DateFormat df=new SimpleDateFormat("yyyy-MM-dd");
        return df.format(this.updated);
    }
}
